<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Title</title>
    <#include "/header.html">

    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    <script src="${request.contextPath}/statics/plugins/layui/layui.all.js"></script>

</head>
<body>
<style>
    .bootstrap-select{
        width: 100% !important;
    }
</style>
<div class="layui-container " style="width: 100%;" id="indexModel">

        <div class="layui-row" style="margin-top: 10px;">
            <div class="layui-col-md3 ">
                <!--<input type="text" id="warnName"  required  placeholder="请输入名称" autocomplete="off" class="form-control">-->
                <select class="selectpicker" id="siteSelect"  style="width:100%;">

                </select>
            </div>

            <div class="layui-col-md3 " style="padding-left: 20px;">
                <a class="btn btn-default" id="search">查询</a>
                <a class="btn btn-primary" style="margin-left: 10px;" id="btnadd"><i class="fa fa-plus"></i>&nbsp;新增</a>
            </div>
        </div>

    <div class="layui-row table-striped" style="margin-top: 10px;padding:0 0px;">
        <table id="bootstrap-table" data-mobile-responsive="true"></table>
    </div>

</div>

<div class="layui-container" style="width: 100%;display: none;margin-top: 20px;" id="addModel">
    <form class="layui-form" action="">
        <div class="layui-row" >
            <div class="layui-col-md12" >
                <div class="layui-form-item" style="width: 500px;">
                    <label class="layui-form-label" style="width: 100px;">类型</label>
                    <div class="layui-input-block" >
                        <!--<input type="text" required id="type"  placeholder="请输入类型" autocomplete="off" class="layui-input">-->
                        <select  lay-filter="business"  id="select"  lay-verify="type" name="business"  >

                        </select>
                    </div>
                </div>
            </div>
            <!--<div class="layui-col-md12">-->
                <!--<div class="layui-form-item" style="width: 500px;">-->
                    <!--<label class="layui-form-label" style="width: 100px;">名称</label>-->
                    <!--<div class="layui-input-block" >-->
                        <!--<input type="text" required id="name"  placeholder="请输入名称" autocomplete="off" class="layui-input">-->
                    <!--</div>-->
                <!--</div>-->
            <!--</div>-->
            <div class="layui-col-md12" id="alarm">
                <div class="layui-form-item" style="width: 500px;">
                    <label class="layui-form-label" style="width: 100px;">报警值</label>
                    <div class="layui-input-block" >
                        <input type="text"  required  id="num" onkeyup="this.value=this.value.replace(/\D/g,'')" placeholder="请输入报警值" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-form-item" style="width: 500px;">
                    <label class="layui-form-label" style="width: 100px;">是否开启</label>
                    <div class="layui-input-block" >
                        <input type="checkbox" name="zzz" lay-filter="switchTest" checked="checked" id="isopen" lay-skin="switch" lay-text="开启|关闭">
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-form-item" style="width: 500px;">
                    <label class="layui-form-label" style="width: 100px;">开启时间</label>
                    <div class="layui-input-block" >
                        <input type="text"  required  id="startTime" placeholder="请输入开启时间" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-form-item" style="width: 500px;">
                    <label class="layui-form-label" style="width: 100px;">结束时间</label>
                    <div class="layui-input-block" >
                        <input type="text"  required  id="endTime" placeholder="请输入开启时间" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-form-item" style="width: 500px;">
                    <label class="layui-form-label" style="width: 100px;">时间间隔</label>
                    <div class="layui-input-block" >
                        <input type="text" onkeyup="this.value=this.value.replace(/\D/g,'')"  required  id="interval" placeholder="时间间隔(秒)" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-form-item" style="width: 500px;">
                    <label class="layui-form-label" style="width: 100px;">间隔次数</label>
                    <div class="layui-input-block" >
                        <input type="text" maxlength="3"  required onkeyup="this.value=this.value.replace(/\D/g,'')" id="intervalNum" placeholder="间隔次数" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row" >
            <div class="layui-col-md6" style="padding-left: 20px;">
                <div class="layui-btn" id="btnconfirm">确定</div>
                <div class="layui-btn layui-btn-warm" id="btnreturn">返回</div>
            </div>
        </div>
    </form>
</div>

<script src="${request.contextPath}/statics/js/alarmConfig.js"></script>
</body>
</html>